package com.yulongtian.createMode.Simple_Factory_Pattern.after;

import java.io.File;
import java.io.IOException;
import java.net.URL;

/**
 * @author YulongTian
 * @date 2022/7/9 - 16:13
 */
public class Clients {
    public static void main(String args[]) throws IOException {
        Chart chart;
        String type = XMLUtil.getChartType(); //读取配置文件中的参数
        chart = ChartFactory.getChart(type); //创建产品对象
        chart.display();

    }
}
